//接收activemq信息测试
/*package com.tddx.activiti.jms;

import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.TextMessage;

import org.springframework.stereotype.Component;

import com.tddx.activiti.utils.DateUtils;

@Component
public class MessageReciever implements MessageListener {

	@Override
	public void onMessage(Message mesg) {
		if(mesg instanceof TextMessage){
			TextMessage txm = (TextMessage) mesg;
			try {
				String text = txm.getText();
				System.out.println(text);
				System.out.println("reciever:::" + text + "time" + DateUtils.date2string());
			} catch (JMSException e) {
				e.printStackTrace();
			}
		}
	}
	
}
*/